public class text {
    public static void main(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root = binaryTree.createTree();// 头节点

//        binaryTree.preOrder(root);
//        System.out.println();
//
//        binaryTree.inOrder(root);
//        System.out.println();
//
//        binaryTree.postOrder(root);
//        System.out.println();
//
//        System.out.println(binaryTree.size1(root));
//        System.out.println(binaryTree.size2(root));
//
//        System.out.println(binaryTree.getLeafNodeCount1(root));
//        System.out.println(binaryTree.getLeafNodeCount2(root));

//        System.out.println(binaryTree.getKLevelNodeCount(root,3));
    }
}
